<div class="profiles form">
<?php echo $form->create('Profile', array('type' => 'file'));?>
	<fieldset>
 		<legend><?php __('Edit Profile');?></legend>
	<?php
		echo $form->input('baking_sourdough');
		echo $form->input('baking_yeast');
		echo $form->input('id');
		echo $form->input('realname');
		echo $form->input('location');
		echo $form->input('bio');
		
		echo $form->input('phone');
		echo $form->input('occupation');
		echo $form->input('url');
		//echo $form->input('birthday');
		echo $form->input('birthday', array(null, null, 'minYear' => date('Y') - 100, 'maxYear' => date('Y') - 6));
	?>
	
	</fieldset>
	<div class="secondary">
		<fieldset>
			<legend><?php __('Edit image');?></legend>
			<?php echo $this->renderElement('../profiles/thumb', array("profile" => $this->data)); ?>
			<?php echo $form->input('avetar', array('type' => 'file','label' => __('Upload a image', true))); ?>
		</fieldset>
		<fieldset>
			<legend><?php echo Configure::read('Profile.help_title')?></legend>
			<p><?php echo Configure::read('Profile.help_body')?></p>
		</fieldset>
	</div>
	<div class="block">
		<div class="element">
			<?php echo $form->submit(__('Save profile', true));?>
		</div>
		<div class="element">
			<?php echo $html->link(__('Cancel and go back', true), array('action'=>'home'),array('class'=>'button-cancel') );?>
		</div>
	</div>
	<?php echo $form->end();?>
</div>

